package com.kefu.admin.utils;

import org.apache.shiro.SecurityUtils;

import com.kefu.admin.modules.sys.model.User;

public class UserUtils {

	
	public static User getUser() {

		return (User) SecurityUtils.getSubject().getPrincipal();
	}

	public static String getUserId() {
		return getUser().getUserId();
	}

	public static String getDeptId() {
		return getUser().getDeptId();
	}
}
